appSkeleton.directive('functionB',
    function ($templateCache,$rootScope,$ocLazyLoad) {
        $rootScope.device = 'desktop';


        return {
            //parameters
            restrict: 'AE',
            replace: true,
            template: $templateCache.get("skeleton-display-and-manage-b-tpl.html"),

            controller:  function ($scope, $element,$ocLazyLoad,$filter,t2iSpinnerService) {
                $scope.options = {
                    visible: true,
                    placeholder: "ascb",
                    isDisplayFilterIcon: false
                };
              /*  $scope.lazyLoadParams = {
                    name: 'xcomponent-widgets',
                    files: [
                       'bower_components/xcomponent-widgets/build_on_demand/function_A.js'
                    ]
                };*/
                console.log($element.find("#spinner"));
                t2iSpinnerService.start($element.find("#spinner"));
            },


            //data binding
            scope: {}

        };
    });
